﻿
<div class="panel panel-default padding-empty">
    <div class="panel-body padding-empty">
        <ol class="breadcrumb margin-empty">
            <li class="breadcrumb-color"><i class="fa fa-home"></i>&nbsp;主页</li>
            <li class="active">考试计划管理</li>
        </ol>
    </div>
</div>

<div class="panel panel-default" ng-controller="operPaper">
    <div class="panel-body">
        <div class="panel panel-default" ng-class="{watermark: planType==1}">
            <div class="panel-heading" style="padding-bottom: 0;">
                <h3 class="panel-title planTabs">
                    <span ng-class="{active:planType==0}" ng-click="official();">正式考试计划</span>
                    <!--<span ng-class="{active:planType==1}" ng-click="imatate();">模拟考试计划</span>-->
                </h3>

                <div class="panel-options" style="margin-top: -10px;">
                    <!--<button class="btn btn-turquoise" ng-click="importPackage();" title="在线导入考试计划包">-->
                        <!--<i class="fa fa-plus"></i>-->
                        <!--<span>在线导入</span>-->
                        <!--<span class="badge" style="background: #ffba00; color: white; position: absolute; top: -15px;">4</span>-->
                    <!--</button>-->

                    <!--<button class="btn btn-turquoise" ng-click="uploadPackage();" title="在线导入考试计划包">
                        <i class="fa fa-plus"></i>
                        <span>在线导入</span>
                    </button>-->
                    <button class="btn btn-turquoise hidden" ng-click="loadBatch();" title="加载考试计划">
                        <span>加载考试计划</span>
                    </button>
                </div>
            </div>

            <div class="panel-body">
                <table class="table responsive" ng-show="list.length > 0">
                    <tbody>
                        <tr ng-repeat="item in list">
                            <td>
                                <div class="row" style="padding-bottom: 10px;">
                                    <div class="col-sm-8">
                                        <h4>
                                            <span class="planLink" ng-click="detail(item);">{{item.examPlanName}}</span>
                                            <small ng-switch on="item.sysState">
                                                <span style="color: #F0807D;vertical-align: text-top;" ng-switch-default>
                                                    <img title="未生成试卷" src="//openexamcdn.open.com.cn/openexam/static/App/images/warning.png" />
                                                </span>
                                                <span style="color: #86E2D5;vertical-align: text-top;" ng-switch-when="6">
                                                    <img title="已生成试卷" src="//openexamcdn.open.com.cn/openexam/static/App/images/success.png" />
                                                </span>
                                            </small>
                                        </h4>
                                    </div>
                                    <div class="col-sm-4 text-right">
                                        <button class="btn btn-turquoise btn-sm" ng-click="room(item);" ng-hide="item.seatByNumberRequired==0">
                                            考场管理
                                        </button>

                                        <!--<button class="btn btn-turquoise btn-sm" ng-click="build(item);" ng-hide="item.isEnd">
                                            生成试卷
                                        </button>-->

                                        <button class="btn btn-turquoise btn-sm" ng-click="loadSubject(item);" ng-hide="item.sysState==6">
                                            重新加载考试计划
                                        </button>
                                    </div>
                                </div>
                                <div class="row" style="color: #606060;">
                                    <div class="col-sm-2" ng-switch on="item.examMode">
                                        <span ng-switch-default></span>
                                        <span ng-switch-when="1">统一考试</span>
                                        <span ng-switch-when="2">预约考试</span>
                                        <span ng-switch-when="3">随到随考</span>
                                        <span ng-switch-when="4">必修考试</span>
                                    </div>
                                    <div class="col-sm-2">
                                        科目数：{{item.examSubjectCount}}
                                    </div>
                                    <div class="col-sm-2">
                                        已生成试卷数：{{item.generatedCount}}
                                    </div>
                                    <div class="col-sm-6 text-right">
                                        考试时间：{{item.beginTime | formatDateNoSs | date: 'yyyy-MM-dd HH:mm'}} ~ {{item.endTime | formatDateNoSs | date: 'yyyy-MM-dd HH:mm'}}
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <h3 class="text-center" ng-show="list.length <= 0">
                    <img src="//openexamcdn.open.com.cn/openexam/static/App/images/nodata.jpg" alt="" />
                    <!--<small>对不起，没有相关数据！</small>-->
                </h3>
            </div>
        </div>
    </div>
</div>
